Disable dllexports from simdutf in chrome.exe Before: ordinal hint RVA name 1 0 001AB510 ?get_active_implementation@simdutf... 2 1 001AB3B0 ?get_available_implementations@simdutf... 3 2 0009EB60 GetHandleVerifier 4 3 0009DFC0 GetPakFileHashes 5 4 000AD790 IsSandboxedProcess After: ordinal hint RVA name 1 0 0005BF30 GetHandleVerifier = ?Get@ScopedHandleVerifier... 2 1 00001000 GetPakFileHashes = GetPakFileHashes 3 2 00199EE0 IsSandboxedProcess = IsSandboxedProcess Bug: 411452028 Change-Id: I61be4b2d6a9f89fa5f73c6599aac6440bd37bcaf Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6470850 Reviewed-by: Nidhi Jaju <nidhijaju@chromium.org> Auto-Submit: Alex Gough <ajgo@chromium.org> Commit-Queue: Alex Gough <ajgo@chromium.org> Cr-Commit-Position: refs/heads/main@{#1448711} NOKEYCHECK=True GitOrigin-RevId: 905eaa62484bcc7cae2afe3527254545b2690c18 diff --git a/BUILD.gn b/BUILD.gn index d88fe7e..5fbce38 100644 --- a/BUILD.gn +++ b/BUILD.gn
@@ -13,6 +13,10 @@ "-Wno-unused-const-variable", "-Wno-unused-function", ] + if (is_win) { + # Supress dllexports when included in chrome.exe. + defines = [ "SIMDUTF_DLLIMPORTEXPORT=" ] + } configs -= [ "//build/config/compiler:chromium_code" ] configs += [ "//build/config/compiler:no_chromium_code" ] if (!is_debug) {